package fs.ls.gs.Service;

import com.sun.xml.internal.bind.v2.model.core.ID;
import fs.ls.gs.Model.GoodsModel;

import java.sql.SQLException;
import java.util.List;

/**
 * @Auther: zhezhe
 * @Date: 2018/9/1417:02
 * @Description:
 */
public  interface GoodsService  {

 //查询所有商品
    List<GoodsModel> queryAll() throws SQLException;

//通过指定的ID查询商品
    GoodsModel getGoodsId(String id) throws SQLException;

    GoodsModel getGoodsName(String name);


    Integer addGoods(GoodsModel goodsModel);

}
